﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//TODO:Create a float which extends ie 2.5Mb();

namespace zielonka.co.uk.extensions.system
{
    /*
     * 
        if (Environment.OSVersion.IsWin8OrHigher())
        {
          // do stuff
        }
     * 
     */
    public static partial class EnviromentExtensions
    {
        public static bool IsWin8OrHigher(this OperatingSystem OS)
        {
            return (OS.Platform == PlatformID.Win32NT)
              && ((OS.Version.Major > 6) || ((OS.Version.Major == 6) && (OS.Version.Minor >= 2)));
        }
    }
}
